<template>
  <div>
    父组件
    <hr />
    <MySon :money="money" @myclick="fn"></MySon>
  </div>
</template>

<script>
import MySon from "./my-son";

export default {
  components: {
    MySon,
  },
  props: {},
  data() {
    return {
      money: 100,
    };
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
    fn(num) {
      this.money += num;
    },
  },
};
</script>

<style scoped></style>
